<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::create('fake_assistant_reserves', function (Blueprint $table) {
            $table->id();
            $table->timestamps();
            $table->softDeletes();
            $table->unsignedBigInteger('member_id')->comment('会员ID');
            $table->unsignedBigInteger('fake_assistant_id')->comment('假助教ID');
            $table->date('date')->comment('日期');
            $table->unsignedTinyInteger('time')->comment('时间');
            $table->string('status')->default(\App\Enums\MiniAPP\AssistantReserveStatus::Pending)->comment('状态');
            $table->string('name')->comment('预约人姓名');
            $table->string('phone')->comment('预约人电话');
            $table->unsignedBigInteger('store_id')->comment('门店ID');
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::dropIfExists('fake_assistant_reserves');
    }
};
